//
//  CTChargeWebViewController.m
//  CT
//
//  Created by liufanwei on 15/4/7.
//  Copyright (c) 2015年 liufanwei. All rights reserved.
//

#import "CTChargeWebViewController.h"
#import "BDKNotifyHUD.h"

@interface CTChargeWebViewController ()<UIWebViewDelegate>
@property (weak, nonatomic) IBOutlet UIWebView *WebView;

@end

@implementation CTChargeWebViewController
@synthesize Url;

- (void)viewDidLoad {
    [super viewDidLoad];
    NSString * strLocalHtml= [Url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *nsurl = [[NSURL alloc] initWithString:strLocalHtml];
    NSMutableURLRequest * Request = [NSMutableURLRequest requestWithURL:nsurl];
    [_WebView loadRequest:Request];
    _WebView.delegate = self;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
- (void)webViewDidFinishLoad:(UIWebView *)webView{
    
}

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
    NSLog(@"%@",error);
}
/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
